﻿using System.Runtime.CompilerServices;
using Microsoft.Practices.Prism.ViewModel;

namespace Hopscotch.Presentation.Common
{
	public class ModelBase : PropertyNotificationObject
    {
        public void SetProperty(ref string refValue, string newValue, [CallerMemberName] string propertyName = "")
        {
            if (refValue == newValue)
                return;

            refValue = newValue;
            RaisePropertyChanged(propertyName);
        }
    }
}
